package com.ssj.ssj;

import java.util.ArrayList;
import java.util.List;

public class Demo {

  public static void main(String[] args) {
    List<String> l = new ArrayList<>(1);
    l.add("system:add");

    String[] array = l.toArray(new String[l.size()]);
    System.out.println(array);
  }
}
